﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TuoShouXXCX.aspx.cs" Inherits="Web.Pages.QuShui.DiXiaS.ChaXunGL.TuoShouXXCX" Theme="Default"%>

 <%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../../../../JS/jquery.js" type="text/javascript"></script>
    <script src="../../../../JS/AddEditCancel.js" type="text/javascript"></script>
    <link href="../../../../css/inputBgColor.css" rel="stylesheet" />
    <style type="text/css">
        body, html {
            padding: 0;
            margin: 0;
            font-size:12px;
        }

        #img table tr td div {
            cursor: pointer;
        }


    </style>
    <script type="text/javascript">
        $(function () {
            var height = Math.max(0, document.documentElement.clientHeight) - 90;
            // $("#condition").css("height", height);
        });



        function rowClick() {
            if (gvGridTab1.GetFocusedRowIndex() != -1) {
                if (gvGridTab1.GetFocusedRowIndex() != -1) {
                    hdCollection.Set("S_BIANHAO", gvGridTab1.GetRowKey(gvGridTab1.GetFocusedRowIndex()));
                    gvGridTab2.PerformCallback();
                }
            }
        }

     

    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            托收信息查询
        </div>
        <div style="display: none;">
            <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField>
            <%--<dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallback1Complete(e.result);}"></dx:ASPxCallback>--%>
        </div>
        <asp:UpdatePanel ID="updatePanel1" runat="server">
            <ContentTemplate>
                <div>
                    <div style="border: 1px solid #d0e4fe">
                        <table>
                            <tr>
                                <td>
                                    <asp:Panel runat="server" ID="Panel1">
                                        <dx:ASPxComboBox runat="server" ID="cmbTuoShou" Width="60%" AutoPostBack="false">
                                            <Items>
                                                <dx:ListEditItem Text="本月托收" Value="1" Selected="true" />
                                                <dx:ListEditItem Text="旧欠托收" Value="2" />
                                            </Items>
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <dx:ASPxLoadingPanel runat="server" ID="LoadPanel11" ClientInstanceName="LoadPanel" Text="正在查询"></dx:ASPxLoadingPanel>
                                    <dx:ASPxButton runat="server" ID="btnChaXun" Text="查询" OnClick="btnChaXun_Click">
                                        <ClientSideEvents Click="function(s,e){LoadPanel.Show();}" />
                                    </dx:ASPxButton>
                                </td>
                                <td>&nbsp;&nbsp;
                                    <dx:ASPxLabel ID="zjl" Text="共0条" runat="server" ForeColor="Blue"></dx:ASPxLabel>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div>
                        <fieldset style="border: 1px solid #d0e4fe">
                            <legend>托收单列表</legend>
                           
                               <%-- <div id="img">
                                    <table>
                                        <tr>
                                            <td>
                                                <dx:ASPxLabel ID="zjl" Text="共0条" runat="server" ForeColor="Blue"></dx:ASPxLabel>
                                            </td>
                                        </tr>
                                    </table>
                                </div>--%>
                                <div>
                                    <dx:ASPxGridView ID="gvGridTab1" ClientInstanceName="gvGridTab1" runat="server" AutoGenerateColumns="False" KeyFieldName="I_BIANHAO" 
                                        ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%"   EnableCallBacks="true" SettingsBehavior-AllowSort="true">
                                        <Columns>
                                            <dx:GridViewDataTextColumn FieldName="S_WENJIANM" Caption="文件名" Width="15%">
                                            </dx:GridViewDataTextColumn>
                                             <dx:GridViewDataTextColumn FieldName="I_ZONGBIS" Caption="总笔数" Width="10%">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="N_ZONGJINE" Caption="总金额" Width="10%" PropertiesTextEdit-DisplayFormatString="0.00">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_Y" Caption="年" Width="10%">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_M" Caption="月" Width="10%">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="LX" Caption="类型" Width="20%">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="D_SHANGCHUANRQ" Caption="送盘日期" Width="10%"  PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                            </dx:GridViewDataTextColumn>
                                            
                                        </Columns>
                                        <Settings VerticalScrollBarMode="Visible"  HorizontalScrollBarMode="Auto" VerticalScrollableHeight="200" />
                                        <SettingsPager   Mode="EndlessPaging" PageSize="100"  />
                                        <Settings ShowFooter="True" />
                                        <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                        <ClientSideEvents FocusedRowChanged="function(s,e){rowClick();}" />
                                        <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                                        <%--<ClientSideEvents Init="function(s,e){AdjustSize(450,gvGridTab1);}"  />--%>
                                    </dx:ASPxGridView>
                                </div>
                              
                        </fieldset>
                    </div>
                    <div>
                        <fieldset style="border: 1px solid #d0e4fe">
                            <legend>托收单明细</legend>
                                <div>
                                    <dx:ASPxGridView ID="gvGridTab2" ClientInstanceName="gvGridTab2" runat="server" AutoGenerateColumns="False" KeyFieldName="S_YONGHUH"  SettingsBehavior-AllowSort="true"
                                        ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%"   EnableCallBacks="true" OnCustomCallback="gvGridTab2_CustomCallback">
                                        <Columns>
                                            <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="8%">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="20%">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="I_YM" Caption="年月" Width="7%">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="S_SHIYONGL" Caption="水量" Width="5%">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="N_JINE" Caption="金额" Width="8%" PropertiesTextEdit-DisplayFormatString="0.00">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="S_HUMING" Caption="银行户名" Width="20%">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="S_ZHANGHAO" Caption="银行帐号" Width="17%">
                                            </dx:GridViewDataTextColumn>
                                            <dx:GridViewDataTextColumn FieldName="S_YINHANG" Caption="开户银行" Width="20%">
                                            </dx:GridViewDataTextColumn>
                                        </Columns>
                                        <Settings VerticalScrollBarMode="Visible"  HorizontalScrollBarMode="Auto" VerticalScrollableHeight="200"/>
                                        <SettingsPager   Mode="EndlessPaging" PageSize="100"  />
                                        <Settings ShowFooter="True" />
                                        <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                        <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                                    </dx:ASPxGridView>
                                </div>
                              
                        </fieldset>
                    </div> 
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html> 
